<div th:fragment="copy">
    <div th:each="carousel:${collect}"><img th:src="${carousel.src}"></div>
</div>